import Vue from 'vue'
import App from './App.vue'
import router from './router'
//import axios from 'axios'
import ElementUI from 'element-ui' //element-ui的全部组件
import 'element-ui/lib/theme-chalk/index.css'
import Highcharts from 'highcharts/highstock';
import HighchartsMore from 'highcharts/highcharts-more';
import HighchartsDrilldown from 'highcharts/modules/drilldown';
import Highcharts3D from 'highcharts/highcharts-3d';
import Highmaps from 'highcharts/modules/map';
import vcolorpicker from 'vcolorpicker';
import * as echarts from 'echarts'

HighchartsMore(Highcharts)
HighchartsDrilldown(Highcharts);
Highcharts3D(Highcharts);
Highmaps(Highcharts);
//import VuevideoPlayer from 'vue-video-player';
import "./jsmpeg.min";

//import 'video.js/dist/video-js.css';
import { Base64 } from 'js-base64'
Vue.prototype.$Base64 = Base64;
Vue.prototype.echarts = echarts // 挂载到Vue实例上面


//Vue.use(VuevideoPlayer);
Vue.use(ElementUI) //使用elementUI
Vue.use(vcolorpicker)
//Vue.prototype.$axios = axios
Vue.config.productionTip = false
import axios from 'axios'
Vue.prototype.$http = axios
// 根据环境变量配置请求地址
axios.defaults.baseURL = process.env.VUE_APP_BASE_API




new Vue({
    router,
    render: h => h(App)
}).$mount('#app')
